

<%@ page import="Contas.TipoUsuario" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'tipoUsuario.label', default: 'TipoUsuario')}" />
        <title><g:message code="SPL - Configucaoes - Editando Tipos" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Pagina Inicial</a></span>
             <span class="menuButton"><a class="list" href="${createLink(uri: '/tipoAdministrador/list')}"><g:message code="Tipos Administrador"/></a></span>
             <span class="menuButton"><a class="list" href="${createLink(uri: '/tipoUsuario/list')}"><g:message code="Tipos Usuario"/></a></span>
             <span class="menuButton"><a class="list" href="${createLink(uri: '/tipoRelatorioTecnico/list')}"><g:message code="Tipos Relatorio Tecnico"/></a></span>
             <span class="menuButton"><a class="list" href="${createLink(uri: '/projeto/list')}"><g:message code="Tipos Projeto"/></a></span>
        </div>
        <div class="body">
            <h1><g:message code="Editando Tipo" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${tipoUsuarioInstance}">
            <div class="errors">
                <g:renderErrors bean="${tipoUsuarioInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <g:hiddenField name="id" value="${tipoUsuarioInstance?.id}" />
                <g:hiddenField name="version" value="${tipoUsuarioInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="tipo"><g:message code="tipoUsuario.tipo.label" default="Tipo" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: tipoUsuarioInstance, field: 'tipo', 'errors')}">
                                    <g:textField name="tipo" maxlength="30" value="${tipoUsuarioInstance?.tipo}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'Atualizar', default: 'Atualizar')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'Excluir Tipo', default: 'Excluir Tipo')}" onclick="return confirm('${message(code: 'Voce tem certeza?', default: 'Voce tem certeza?')}');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
